(i) JavaScript type1. JavaScript data types have a total of 6 in the ES5 Standard: Numbers, strings, Booleans, null,undefined, objects. The first five are known as primitive types, and objects are object types. Objects also include our commonly used arrays and functions.2. The original data type of Javasript is generally not changed, but the object type can be changed.(ii) Number1. Integral Type Direct Quantity(1) ES supports decimal and hexadecimal. Where hexadecimal starts with ' 0x ' or ' 0X
Author: lyboy99E-mail: lyboy99@sina.comURL: http://hnh.126.comWe provide you with several common conversion methods and their conversion functions.Hope to help you
1. hex-> integer2.2.dec to hex3. ASCII to hex/math4. Binary to decimal
========================================================== ======================================1. hex-> integer========================================================== ======================================Method 1--
Java-java functiona detail1 import com.chengzhi.pkg2.*; importing files within a package2 package com.chengzhi.pkg1; Set up the file in the COM Chengzhi pkg1 directory, the directory will be created automatically, the ***.MF file is created before packaging, and written to Main-class:test (the name of my Java source file) 3 API application Programming interface4 Custom class first letter capitalization5two common classes1 Util Pack-date class2 Util Pack-map class3 lang packet-
= {'title': 'My Home page', 'text': 'Welcome to My home Page! '} 2 print (d) 3 d. clear () 4 print (d) 5 6 d = {'title': 'My Home page', 'text': 'Welcome to My home Page! '} 7 f = d. copy () 8 print (d) 9 print (f) 10 11 print ({}. fromkeys (['name', 'age']) 12 13 print (d. get ('title') 14 15 print (d. keys ())View Code
2. Basic statements
2.1print and import
1. use commas (,) for output. print is mentioned earlier to print the results. When multiple expressions are printed, use commas (,) to
built-in objects in JavaScript1.Array2.String3.Math4.DateArrays in JavaScriptLearning Goals1. Master any array creation2. Mastering the reading and writing of numeric elements3. Mastering the Length property of an array How to create an arrayThere are two basic ways to create an array:1. using the Array constructorsyntax:new Array()Parentheses () Description:(1) know in advance the number of items to be saved in the array(2) to pass an array of items
The JavaScript scripting language is an object-oriented programming language. About object-oriented, through the front of C #, C + + learning we have learned that it generally has three characteristics: encapsulation, inheritance, polymorphism. JavaScript is not strictly object-oriented, it supports a simple object model supported by some predefined objects. The object of JavaScript consists of two basic elements of properties and methods, and then you'll look at some of the main objects of Java
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.